-
-
5本人纯小白,现需要做一个数据预处理,但是把excel导入python以后不知道怎么继续了,现找懂python的大哥问一些问题,也可以代做,价格私
-
1
-
4
-
6
-
3
-
43import jieba excludes ={"将军","却说","荆州","二人","不可","不能","如此"} txt = open("D:\三国演义.txt","r",encoding='utf-8').read() words = jieba.lcut(txt) counts = {} for word in words: if len(word)== 1: continue elif word =="诸葛亮" or word == "孔明曰": rword = "孔明" elif word =="关公" or word == "云长": rword = "关羽" elif word =="玄德" or word == "玄德曰": rword = "刘备" el
-
9想做搜索页和详情页的数据,谁来讲讲抓哪些包逆向哪些参数,搞了一天搞不成,
-
9本人目前正在学习python,但是对爬虫可爬哪些数据,爬哪些数据是违法的不是很清楚,有没有大佬解释一下
-
0
-
4如何用ciphey解密维吉尼亚加密的密文
-
1python里代码输入什么命令可以打开另一个文件夹里的python文件
-
4
-
17
-
31
-
0
-
118
-
7
-
3
-
1mport requestsfrom lxml import etreeimport jsonif __name__ == "__main__": headers={"User-Agent":'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/网页链接 Safari/537.36 Edg/124.0.0.0'} url='https://movie.douban.com/review/15936298/' res = requests.get(url=url,headers=headers) xml=网页链接 tree = etree.HTML(xml) div_list = tree.xpath("//div[@class='short-content']/p[@class='spoiler-tip']/text()") print(div_list) 是xpath写错了吗?
-
35
-
1并且是附带着python3的anaconda。
-
2
-
3
-
0
-
5
-
3
-
40本人自学Python两个月以来,自认基础功扎实得差不多了只不过敲了两个月的Python发现我用的库都是别人写出来的总给我一种寄人篱下的感觉,我寻思为啥我不能自己写个库自己用,于是我去搜了很多相关教程,怎奈何网上教程的含金量实在太少了,根本找不到真干货,求个给干货链接的佬
-
5
-
0大专学Python爬虫怎么出去找工作呢?又要学到什么地步?求大佬们给建议
-
15
-
2
-
0分享贴子
-
5
-
16
-
0请教下各位老师,在VScode上运行ipynb文件,含multiprocess库的多线程代码,进程拉起来了,但完全没动静,process或者poor都一样。 但代码放py文件,双击运行是OK的,多核心能把U吃满。 这种一般怎么调试比较好,anaconda会有这种问题吗?谢谢!
-
0
-
0import tkinter as tk class SplashScreen: def __init__(self, root, image_path, duration): self.root = root self.root.title("启动封面") self.duration = duration # 加载GIF图片 self.photo = tk.PhotoImage(file=image_path) # 创建标签并显示图片 self.label = tk.Label(self.root, image=self.photo) self.label.pack() # 设置定时器,延时后关闭封面 self.root.after(self.duration, self.close_splash) def close_splash(self): self.root.destroy() class Resume: def __init__(self): self.root = tk.Tk() self.root.title("生成简历") # 输入信息 tk.Label(self.root,
-
11
-
2pycharm上面直接下的pyautogui和pillow版本冲突,有什么解决方案吗,pycharm上面的第三方库删了下,下了删都这样。
-
0有哪位编程大佬想收徒吗?
-
0主要是因为……我不知道如何把十进制整数转化为二进制科学记数法(用来存储),还有二进制科学计数法转化为十进制科学记数法(用来显示)有没有好方法来点
-
7
-
7
-
4
-
547为了Python特吧的未来发展,为了改变本吧杂乱的页面情况,也为了大家能够更快的得到更多的经验值,特
-
9
-
22urllib.error.HTTPError: HTTP Error 504: Gateway Time-out